{% extends "base.html" %}

{% block head-title %}{{algorithm.algorithm_name}}{% endblock %}

{% block title %}{{algorithm.algorithm_name}}{% endblock %}

{% block content %}
<script>
	var field_names_length={{algorithm.input_field_names|length}};
</script>
<script src="/static/js/regressor/4.js"></script>
<form action="/regressor/upload_predict_input_values/" method="post" class="uk-form" id="form1"
					onsubmit="return onForm1Submit();">
	{%csrf_token%}
	<input type="hidden" name="instance_id" value="{{algorithm.instance_id}}"/>
	<fieldset>
		<legend>提交待预测数据(4/4)</legend>
		<div class="uk-form-row">
			<div class="uk-form-controls">
				<textarea rows="5" placeholder="每行一数据"
					name="predict_input_values" id="predict_input_values" style="width: 100%;color:blue;"></textarea>
			</div>
		</div>
	</fieldset>
	
	<div class="uk-form-row" style="margin-top:5px;">
		<a href="javascript:history.go(-1);" class="uk-button">上一步</a>
		<input class="uk-button uk-button-primary" type="submit"
			value="提交" style="float: right;">
	</div>
</form>
<hr/>
<div>
	<div class="uk-badge">输入字段</div>
	<div>
		{{algorithm.input_field_names|join:","}}
	</div>
	<div class="uk-badge">示例数据</div>
	<div>
		{{algorithm.inputs|first|join:","}}
	</div>
</div>
{% endblock %}